home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update29.zoo / lib / diffc
Encoding:
Text File  |  1993-03-28  |  34.4 KB  |  1,218 lines

  1. ===================================================================
  2. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/Changelo,v
  3. retrieving revision 1.89
  4. diff -c -r1.89 Changelo
  5. *** 1.89    1993/02/22 17:57:37
  6. --- Changelo    1993/03/29 03:13:26
  7. ***************
  8. *** 3618,3620 ****
  9. --- 3618,3698 ----
  10.   
  11.   
  12.   ---------------------------- Patchlevel 87 ---------------------------
  13. + support.h:: warwick
  14. +     s/new/newname/  otherwise it clashes with the new op of c++
  15. + findfile.c:: warwick
  16. +     "findfile" doesn't work if the path is "\" (or "/", or "\\'),
  17. +     while "E:\foo" works fine.  Can it handle trailing slashes?
  18. + _addsubd.cpp _addsubs.cpp _divdf3.cpp _divsf3.cpp _extends.cpp 
  19. + _fixdfsi.cpp _fixsfsi.cpp _fxunsd.cpp _muldf3.cpp _mulsf3.cpp
  20. + _truncdf.cpp: andreas
  21. +     All floating point routines: my 68000 book says that bset #bitno,dn is
  22. +     faster than orl #imm,dn.  _fixsfsi.cpp: that was also my fault
  23. + atof.c:: andreas
  24. + ctime.c:: andreas
  25. + doprnt.c:: andreas
  26. +     Another bug that i introduced in doprnt.c:
  27. +     the m68020 version of _ICONV has the arguments of divull reversed
  28. + errno.h, strerror:: andreas
  29. +     include the new error EPIPE
  30. + filbuf.c:: andreas
  31. +     clr FILE->cnt on EoF or error.
  32. + fopen.c:: andreas
  33. +     dont close ttys for MiNT
  34. +     get new buffer if file was closed
  35. +         
  36. + strftime.c:: andreas
  37. +     strftime: typo in case 't', initialize buf if format
  38. +     directive is undefined
  39. + strtol.c:: andreas
  40. +     negating LONG_MIN gives overflow
  41. + lib.h, fcntl.h::
  42. +     The declaration for __open_stat etc. should be moved to lib.h, where
  43. +     the internals of the library belong to.
  44. + close.c isatty.c dup.c fcntl.c fhandle.c::
  45. +     adjust for above
  46. + strupr/lwr:: michal
  47. +     use <ctype> tolower/upper instead (in case we ever support 8 bit or
  48. +     wide chars, then the EOR trick of course will not work).
  49. + main.c:: andreas
  50. +     integrate c++ __main() (see changes in gcc 2.3.3 pl 3 (c-decl.c)).
  51. +     c++ low level support now moved to this lib from libg++
  52. +     define std in/out/err symbols for debugging.
  53. + gmon.c:: andreas
  54. +     fixup for gcc > 1
  55. + gbl-ctors.h, longlong.h: andreas
  56. +     new files in common
  57. + libgcc2.c:: andreas
  58. +     new file in common
  59. + osbind.h, falcon.h, mintbind.h:: andreas
  60. +     fix up for __GNUC__ > 1. note how the restriction of # of params
  61. +     to __asm() as been lifted, and now we use this feature for
  62. +     the larger binding. this is very benefecial as we dont have
  63. +     to bend over backwards to get a few binding correct (binding in
  64. +     which we would change the SP from under the compilers feet).
  65. + realloc.c: andreas
  66. +     In realloc, a block can only be split in two if there's enough room
  67. +     left for a struct mem_chunk (plus a bit more). [+ roundup ++jrb ]
  68. + ---------------------------- Patchlevel 88 ---------------------------
  69. ===================================================================
  70. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/PatchLev.h,v
  71. retrieving revision 1.63
  72. diff -c -r1.63 PatchLev.h
  73. *** 1.63    1993/02/17 23:57:55
  74. --- PatchLev.h    1993/03/29 03:13:29
  75. ***************
  76. *** 1,5 ****
  77.   
  78. ! #define    PatchLevel "87"
  79.   
  80.   /*
  81.    *
  82. --- 1,5 ----
  83.   
  84. ! #define    PatchLevel "88"
  85.   
  86.   /*
  87.    *
  88. ===================================================================
  89. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/close.c,v
  90. retrieving revision 1.15
  91. diff -c -r1.15 close.c
  92. *** 1.15    1992/06/01 01:57:48
  93. --- close.c    1993/03/01 17:29:28
  94. ***************
  95. *** 9,14 ****
  96. --- 9,15 ----
  97.   #include    <device.h>
  98.   #include    <stdlib.h>
  99.   #include     <unistd.h>
  100. + #include    "lib.h"
  101.   
  102.   int (*pipeclose_p) __PROTO((int fd)) = 0;
  103.   
  104. ===================================================================
  105. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/crt0.c,v
  106. retrieving revision 1.23
  107. diff -c -r1.23 crt0.c
  108. *** 1.23    1992/10/09 20:32:44
  109. --- crt0.c    1993/03/16 22:09:01
  110. ***************
  111. *** 23,33 ****
  112.    *      -3L        keep 2/4 (1/2), free 1/2 malloc from own heap
  113.    *      -2L        keep 1/4 of memory, free 3/4, malloc from own heap
  114.    *
  115. !  *    NOTE: all of the following will do malloc from Malloc() first,
  116. !  *    when that fails, malloc() will do further mallocs from
  117. !  *    our own heap. This lets us use the maximum amount of
  118. !  *      memory in traditional ST's as well as newer split address
  119. !  *    STs.
  120.    *
  121.    *      -1L        keep all of memory (except MINFREE at top) and do
  122.    *            mallocs from own heap, with heap grown upwards towards
  123. --- 23,35 ----
  124.    *      -3L        keep 2/4 (1/2), free 1/2 malloc from own heap
  125.    *      -2L        keep 1/4 of memory, free 3/4, malloc from own heap
  126.    *
  127. !  *    NOTE: all of the following will do malloc from Malloc() first.
  128. !  *    when that fails, in the -1L case malloc() will then do further
  129. !  *    mallocs from our own heap. This lets us use the maximum amount of
  130. !  *      memory in traditional ST's as well as in newer split address
  131. !  *    STs. In the >=0 cases futher malloc()'s will fail, and they
  132. !  *    will not try to malloc() from own heap. Out own space in the >= 0
  133. !  *    cases are intended mainly for stack+alloca()'s.
  134.    *
  135.    *      -1L        keep all of memory (except MINFREE at top) and do
  136.    *            mallocs from own heap, with heap grown upwards towards
  137. ***************
  138. *** 109,115 ****
  139.    */
  140.   long _initial_stack;            /* .comm __initial_size, 4 */
  141.   extern long _stksize;            /* picked up from user or stksiz.c */
  142. ! /* set to heap base addr when _stksize == -1L || _initial_stack || When DA */
  143.   void *_heapbase;
  144.   
  145.   /* default sizeof stdio buffers */
  146. --- 111,117 ----
  147.    */
  148.   long _initial_stack;            /* .comm __initial_size, 4 */
  149.   extern long _stksize;            /* picked up from user or stksiz.c */
  150. ! /* set to heap base addr when (_stksize <= -1L) || _initial_stack || When DA */
  151.   void *_heapbase;
  152.   
  153.   /* default sizeof stdio buffers */
  154. ===================================================================
  155. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/dup.c,v
  156. retrieving revision 1.6
  157. diff -c -r1.6 dup.c
  158. *** 1.6    1991/04/12 18:19:53
  159. --- dup.c    1993/03/01 17:29:32
  160. ***************
  161. *** 8,13 ****
  162. --- 8,14 ----
  163.   #include <fcntl.h>
  164.   #include <osbind.h>
  165.   #include <errno.h>
  166. + #include "lib.h"
  167.   
  168.   int dup(handle)
  169.       int handle;
  170. ===================================================================
  171. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/fcntl.c,v
  172. retrieving revision 1.2
  173. diff -c -r1.2 fcntl.c
  174. *** 1.2    1991/12/26 15:53:59
  175. --- fcntl.c    1993/03/01 17:29:35
  176. ***************
  177. *** 8,13 ****
  178. --- 8,14 ----
  179.   #include <stdarg.h>
  180.   #include <errno.h>
  181.   #include <unistd.h>
  182. + #include "lib.h"
  183.   
  184.   #ifdef __STDC__
  185.   int fcntl (int f, int cmd, ...)
  186. ===================================================================
  187. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/fhandle.c,v
  188. retrieving revision 1.4
  189. diff -c -r1.4 fhandle.c
  190. *** 1.4    1991/04/12 18:19:53
  191. --- fhandle.c    1993/03/01 17:29:38
  192. ***************
  193. *** 4,9 ****
  194.    */
  195.   
  196.   #define __FHANDLE_C__
  197. ! #include <fcntl.h>
  198.   
  199.   struct __open_file __open_stat[__NHANDLES];
  200. --- 4,9 ----
  201.    */
  202.   
  203.   #define __FHANDLE_C__
  204. ! #include "lib.h"
  205.   
  206.   struct __open_file __open_stat[__NHANDLES];
  207. ===================================================================
  208. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/isatty.c,v
  209. retrieving revision 1.10
  210. diff -c -r1.10 isatty.c
  211. *** 1.10    1992/10/09 20:32:44
  212. --- isatty.c    1993/03/01 17:29:40
  213. ***************
  214. *** 7,12 ****
  215. --- 7,13 ----
  216.   #include <stdio.h>
  217.   #include <unistd.h>
  218.   #include <device.h>
  219. + #include "lib.h"
  220.   
  221.   int isatty(fd)
  222.   int fd;
  223. ===================================================================
  224. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/main.c,v
  225. retrieving revision 1.24
  226. diff -c -r1.24 main.c
  227. *** 1.24    1992/10/09 20:32:44
  228. --- main.c    1993/03/16 22:09:03
  229. ***************
  230. *** 58,63 ****
  231. --- 58,68 ----
  232.   /* in getbuf.c */
  233.   __EXTERN void _getbuf __PROTO((FILE *));
  234.   
  235. + #if __GNUC__ > 1
  236. + /* in libgcc2.c */
  237. + __EXTERN void __do_global_dtors __PROTO ((void));
  238. + #endif
  239.   void
  240.   _main(_argc, _argv, _envp)
  241.       long _argc;
  242. ***************
  243. *** 175,186 ****
  244. --- 180,203 ----
  245.       __exit((long)status);
  246.   }
  247.   
  248. + /* For debuggers: non-macro versions of std{in,out,err}. */
  249. + #undef stdin
  250. + #undef stdout
  251. + #undef stderr
  252. + FILE *stdin = &_iob[0];
  253. + FILE *stdout = &_iob[1];
  254. + FILE *stderr = &_iob[2];
  255.   __EXITING exit(status)
  256.       int status;
  257.   {
  258.       register int i, f;
  259.   
  260.   
  261. + #if __GNUC__ > 1
  262. +     __do_global_dtors ();
  263. + #endif
  264.       for(i=0; i<_NFILE; ++i) {
  265.           f = _iob[i]._flag;
  266.           if(f & (_IORW | _IOREAD | _IOWRT))
  267. ===================================================================
  268. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/mincl,v
  269. retrieving revision 1.25
  270. diff -c -r1.25 mincl
  271. *** 1.25    1993/02/17 23:58:01
  272. --- mincl    1993/03/16 22:09:05
  273. ***************
  274. *** 6,16 ****
  275.       _truncdf.o _udivmod.o _umulsi3.o _fixsfsi.o _fltsisf.o _isnan.o
  276.   
  277.   #GLIB2 = gnulib2.o
  278. ! GLIB2 = _adddi3.o _subdi3.o _muldi3.o _divdi3.o _moddi3.o _udivdi3.o \
  279. !         _umoddi3.o _negdi2.o _anddi3.o _iordi3.o _xordi3.o _lshrdi3.o \
  280. !         _lshldi3.o _ashldi3.o _ashrdi3.o _one_cmpldi2.o _bdiv.o _cmpdi2.o \
  281. !         _ucmpdi2.o _fixunsdfdi.o _fixdfdi.o _floatdidf.o \
  282. !     _fxussfsi.o _gccbcmp.o
  283.   
  284.   GCC=     $(GLIB1) $(GLIB2) \
  285.       ldexp.o frexp.o modf.o alloca.o setjmp.o osbind.o\
  286. --- 6,23 ----
  287.       _truncdf.o _udivmod.o _umulsi3.o _fixsfsi.o _fltsisf.o _isnan.o
  288.   
  289.   #GLIB2 = gnulib2.o
  290. ! #GLIB2 = _adddi3.o _subdi3.o _muldi3.o _divdi3.o _moddi3.o _udivdi3.o \
  291. ! #        _umoddi3.o _negdi2.o _anddi3.o _iordi3.o _xordi3.o _lshrdi3.o \
  292. ! #        _lshldi3.o _ashldi3.o _ashrdi3.o _one_cmpldi2.o _bdiv.o _cmpdi2.o \
  293. ! #        _ucmpdi2.o _fixunsdfdi.o _fixdfdi.o _floatdidf.o \
  294. ! #    _fxussfsi.o _gccbcmp.o
  295. ! GLIB2 = _muldi3.o _divdi3.o _moddi3.o _udivdi3.o _umoddi3.o _negdi2.o \
  296. !     _lshrdi3.o _lshldi3.o _ashldi3.o _ashrdi3.o _udivmoddi4.o _cmpdi2.o \
  297. !     _ucmpdi2.o _floatdidf.o _floatdisf.o _fixunsdfsi.o _fixunssfsi.o \
  298. !     _fixunsdfdi.o _fixdfdi.o _fixunssfdi.o _fixsfdi.o _builtin_new.o \
  299. !     _caps_New.o _builtin_del.o _trampoline.o __main.o _ctor_list.o \
  300. !     _dtor_list.o
  301.   
  302.   GCC=     $(GLIB1) $(GLIB2) \
  303.       ldexp.o frexp.o modf.o alloca.o setjmp.o osbind.o\
  304. ***************
  305. *** 113,120 ****
  306.   #
  307.   # gnulib2 stuff (must be compiled with 32 bit ints)
  308.   
  309. ! $(GLIB2): %.o: gnulib2.c
  310. !     $(CC) $(CLFLAGS) -DL$* -c gnulib2.c -o $@
  311.   
  312.   .PHONY: install install020 clean realclean all all020 top
  313.   
  314. --- 120,127 ----
  315.   #
  316.   # gnulib2 stuff (must be compiled with 32 bit ints)
  317.   
  318. ! $(GLIB2): %.o: libgcc2.c longlong.h
  319. !     $(CC) $(CLFLAGS) -DL$* -c $< -o $@
  320.   
  321.   .PHONY: install install020 clean realclean all all020 top
  322.   
  323. ===================================================================
  324. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/pipe.c,v
  325. retrieving revision 1.4
  326. diff -c -r1.4 pipe.c
  327. *** 1.4    1992/02/04 17:11:06
  328. --- pipe.c    1993/03/01 17:29:42
  329. ***************
  330. *** 5,10 ****
  331. --- 5,11 ----
  332.   #include <stdlib.h>
  333.   #include <unistd.h>
  334.   #include <string.h>
  335. + #include "lib.h"
  336.   #define __MINT__
  337.   #include <mintbind.h>
  338.   
  339. ===================================================================
  340. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/popen.c,v
  341. retrieving revision 1.4
  342. diff -c -r1.4 popen.c
  343. *** 1.4    1991/12/26 15:53:59
  344. --- popen.c    1993/03/01 17:29:44
  345. ***************
  346. *** 24,29 ****
  347. --- 24,30 ----
  348.   #include    <fcntl.h>
  349.   #include    <string.h>
  350.   #include    <unistd.h>
  351. + #include    "lib.h"
  352.   
  353.   struct _pipe {
  354.       char    pmode;        /* "r" or "w" to/from the pipe ?    */
  355. ===================================================================
  356. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/spawnvp.c,v
  357. retrieving revision 1.6
  358. diff -c -r1.6 spawnvp.c
  359. *** 1.6    1991/04/26 03:42:08
  360. --- spawnvp.c    1993/03/01 17:29:46
  361. ***************
  362. *** 11,16 ****
  363. --- 11,17 ----
  364.   #include <errno.h>
  365.   #include <fcntl.h>
  366.   #include <unistd.h>
  367. + #include "lib.h"
  368.   
  369.   __EXTERN char *    findfile __PROTO((char *, char *, char **));
  370.   
  371. ===================================================================
  372. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_addsubd.cpp,v
  373. retrieving revision 1.5
  374. diff -c -r1.5 _addsubd.cpp
  375. *** 1.5    1992/12/28 07:55:59
  376. --- _addsubd.cpp    1993/03/01 17:33:55
  377. ***************
  378. *** 140,152 ****
  379.   |
  380.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  381.       beq    0f
  382. !     orl    #0x100000,d6    | restore implied leading "1"
  383.       bra    1f
  384.   0:    addw    #1,d0        | "normalize" exponent
  385.   1:
  386.       tstw    d1        | check for zero exponent - no leading "1"
  387.       beq    0f
  388. !     orl    #0x100000,d4    | restore implied leading "1"
  389.       bra    1f
  390.   0:    addw    #1,d1        | "normalize" exponent
  391.   1:
  392. --- 140,152 ----
  393.   |
  394.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  395.       beq    0f
  396. !     bset    #20,d6        | restore implied leading "1"
  397.       bra    1f
  398.   0:    addw    #1,d0        | "normalize" exponent
  399.   1:
  400.       tstw    d1        | check for zero exponent - no leading "1"
  401.       beq    0f
  402. !     bset    #20,d4        | restore implied leading "1"
  403.       bra    1f
  404.   0:    addw    #1,d1        | "normalize" exponent
  405.   1:
  406. ===================================================================
  407. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_addsubs.cpp,v
  408. retrieving revision 1.5
  409. diff -c -r1.5 _addsubs.cpp
  410. *** 1.5    1992/12/28 07:56:00
  411. --- _addsubs.cpp    1993/03/01 17:33:57
  412. ***************
  413. *** 134,146 ****
  414.   |
  415.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  416.       beq    0f
  417. !     orl    #0x800000,d5    | restore implied leading "1"
  418.       bra    1f
  419.   0:    addw    #1,d0        | "normalize" exponent
  420.   1:
  421.       tstw    d1        | check for zero exponent - no leading "1"
  422.       beq    0f
  423. !     orl    #0x800000,d4    | restore implied leading "1"
  424.       bra    1f
  425.   0:    addw    #1,d1        | "normalize" exponent
  426.   1:
  427. --- 134,146 ----
  428.   |
  429.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  430.       beq    0f
  431. !     bset    #23,d5        | restore implied leading "1"
  432.       bra    1f
  433.   0:    addw    #1,d0        | "normalize" exponent
  434.   1:
  435.       tstw    d1        | check for zero exponent - no leading "1"
  436.       beq    0f
  437. !     bset    #23,d4        | restore implied leading "1"
  438.       bra    1f
  439.   0:    addw    #1,d1        | "normalize" exponent
  440.   1:
  441. ===================================================================
  442. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_divdf3.cpp,v
  443. retrieving revision 1.4
  444. diff -c -r1.4 _divdf3.cpp
  445. *** 1.4    1992/12/28 07:56:03
  446. --- _divdf3.cpp    1993/03/01 17:33:59
  447. ***************
  448. *** 152,164 ****
  449.   |    
  450.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  451.       beq    0f
  452. !     orl    #0x100000,d4    | restore implied leading "1"
  453.       bra    1f
  454.   0:    addw    #1,d0        | "normalize" exponent
  455.   
  456.   1:    tstw    d1        | check for zero exponent - no leading "1"
  457.       beq    0f
  458. !     orl    #0x100000,d6    | restore implied leading "1"
  459.       bra    1f
  460.   0:    addw    #1,d1        | "normalize" exponent
  461.   
  462. --- 152,164 ----
  463.   |    
  464.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  465.       beq    0f
  466. !     bset    #20,d4        | restore implied leading "1"
  467.       bra    1f
  468.   0:    addw    #1,d0        | "normalize" exponent
  469.   
  470.   1:    tstw    d1        | check for zero exponent - no leading "1"
  471.       beq    0f
  472. !     bset    #20,d6        | restore implied leading "1"
  473.       bra    1f
  474.   0:    addw    #1,d1        | "normalize" exponent
  475.   
  476. ===================================================================
  477. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_divsf3.cpp,v
  478. retrieving revision 1.4
  479. diff -c -r1.4 _divsf3.cpp
  480. *** 1.4    1993/01/13 14:30:38
  481. --- _divsf3.cpp    1993/03/01 17:34:01
  482. ***************
  483. *** 146,152 ****
  484.   |    
  485.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  486.       beq    0f
  487. !     orl    #0x800000,d4    | restore implied leading "1"
  488.       bra    1f
  489.   0:    addw    #1,d0        | "normalize" exponent
  490.   1:
  491. --- 146,152 ----
  492.   |    
  493.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  494.       beq    0f
  495. !     bset    #23,d4        | restore implied leading "1"
  496.       bra    1f
  497.   0:    addw    #1,d0        | "normalize" exponent
  498.   1:
  499. ***************
  500. *** 157,163 ****
  501.   
  502.       tstw    d1        | check for zero exponent - no leading "1"
  503.       beq    0f
  504. !     orl    #0x800000,d5    | restore implied leading "1"
  505.       bra    1f
  506.   0:    addw    #1,d1        | "normalize" exponent
  507.   1:    tstl    d5
  508. --- 157,163 ----
  509.   
  510.       tstw    d1        | check for zero exponent - no leading "1"
  511.       beq    0f
  512. !     bset    #23,d5        | restore implied leading "1"
  513.       bra    1f
  514.   0:    addw    #1,d1        | "normalize" exponent
  515.   1:    tstl    d5
  516. ===================================================================
  517. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_extends.cpp,v
  518. retrieving revision 1.3
  519. diff -c -r1.3 _extends.cpp
  520. *** 1.3    1993/01/13 14:30:40
  521. --- _extends.cpp    1993/03/01 17:34:03
  522. ***************
  523. *** 56,62 ****
  524.       
  525.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  526.       beq    0f        | for denormalized numbers
  527. !     orl    #0x800000,d4    | restore implied leading "1"
  528.       bra    1f
  529.   0:    addw    #1,d0        | "normalize" exponent
  530.   1:
  531. --- 56,62 ----
  532.       
  533.   nospec:    tstw    d0        | check for zero exponent - no leading "1"
  534.       beq    0f        | for denormalized numbers
  535. !     bset    #23,d4        | restore implied leading "1"
  536.       bra    1f
  537.   0:    addw    #1,d0        | "normalize" exponent
  538.   1:
  539. ===================================================================
  540. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_fixdfsi.cpp,v
  541. retrieving revision 1.3
  542. diff -c -r1.3 _fixdfsi.cpp
  543. *** 1.3    1992/10/09 20:35:29
  544. --- _fixdfsi.cpp    1993/03/01 17:34:05
  545. ***************
  546. *** 102,108 ****
  547.       andw    #0x07ff,d2    | kill sign bit
  548.   
  549.       andl    #0x0fffff,d0    | remove exponent from mantissa
  550. !     orl    #0x100000,d0    | restore implied leading "1"
  551.   
  552.       cmpw    #BIAS8,d2    | check exponent
  553.       blt    zero        | strictly factional, no integer part ?
  554. --- 102,108 ----
  555.       andw    #0x07ff,d2    | kill sign bit
  556.   
  557.       andl    #0x0fffff,d0    | remove exponent from mantissa
  558. !     bset    #20,d0        | restore implied leading "1"
  559.   
  560.       cmpw    #BIAS8,d2    | check exponent
  561.       blt    zero        | strictly factional, no integer part ?
  562. ===================================================================
  563. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_fixsfsi.cpp,v
  564. retrieving revision 1.2
  565. diff -c -r1.2 _fixsfsi.cpp
  566. *** 1.2    1992/10/09 20:35:29
  567. --- _fixsfsi.cpp    1993/03/01 17:34:07
  568. ***************
  569. *** 20,29 ****
  570.   zahl =      0
  571.   
  572.       lea    0xfffffa50:w,a0
  573. !     movew    #0x5403,a0@(comm)    | fintrz to fp0
  574.       cmpiw    #0x8900,a0@(resp)    | check
  575.       movel    a7@(4),a0@
  576. -     movel    a7@(8),a0@
  577.       movew    #0x6000,a0@(comm)    | result to d0
  578.   | waiting loop is NOT coded directly
  579.   1:    cmpiw    #0x8900,a0@(resp)
  580. --- 20,28 ----
  581.   zahl =      0
  582.   
  583.       lea    0xfffffa50:w,a0
  584. !     movew    #0x4403,a0@(comm)    | fintrz to fp0
  585.       cmpiw    #0x8900,a0@(resp)    | check
  586.       movel    a7@(4),a0@
  587.       movew    #0x6000,a0@(comm)    | result to d0
  588.   | waiting loop is NOT coded directly
  589.   1:    cmpiw    #0x8900,a0@(resp)
  590. ***************
  591. *** 43,49 ****
  592.       andw    #0xff,d1    | kill sign bit
  593.   
  594.       andl    #0x7fffff,d0    | remove exponent from mantissa
  595. !     orl    #0x800000,d0    | restore implied leading "1"
  596.   
  597.       cmpw    #BIAS4,d1    | check exponent
  598.       blt    zero        | strictly factional, no integer part ?
  599. --- 42,48 ----
  600.       andw    #0xff,d1    | kill sign bit
  601.   
  602.       andl    #0x7fffff,d0    | remove exponent from mantissa
  603. !     bset    #23,d0        | restore implied leading "1"
  604.   
  605.       cmpw    #BIAS4,d1    | check exponent
  606.       blt    zero        | strictly factional, no integer part ?
  607. ===================================================================
  608. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_fxunsd.cpp,v
  609. retrieving revision 1.2
  610. diff -c -r1.2 _fxunsd.cpp
  611. *** 1.2    1992/10/09 20:35:29
  612. --- _fxunsd.cpp    1993/03/01 17:34:09
  613. ***************
  614. *** 85,91 ****
  615.       andw    #0x07ff,d0    | kill sign bit
  616.   
  617.       andl    #0x0fffff,d4    | remove exponent from mantissa
  618. !     orl    #0x100000,d4    | restore implied leading "1"
  619.   
  620.       cmpw    #BIAS8,d0    | check exponent
  621.       blt    zero        | strictly factional, no integer part ?
  622. --- 85,91 ----
  623.       andw    #0x07ff,d0    | kill sign bit
  624.   
  625.       andl    #0x0fffff,d4    | remove exponent from mantissa
  626. !     bset    #20,d4        | restore implied leading "1"
  627.   
  628.       cmpw    #BIAS8,d0    | check exponent
  629.       blt    zero        | strictly factional, no integer part ?
  630. ===================================================================
  631. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_muldf3.cpp,v
  632. retrieving revision 1.3
  633. diff -c -r1.3 _muldf3.cpp
  634. *** 1.3    1992/12/28 07:56:04
  635. --- _muldf3.cpp    1993/03/01 17:34:12
  636. ***************
  637. *** 142,148 ****
  638.   
  639.       tstw    d0        | check for zero exponent - no leading "1"
  640.       beq    0f
  641. !     orl    #0x100000,d6    | restore implied leading "1"
  642.       bra    1f
  643.   0:    addw    #1,d0        | "normalize" exponent
  644.   1:    movel    d6,d3
  645. --- 142,148 ----
  646.   
  647.       tstw    d0        | check for zero exponent - no leading "1"
  648.       beq    0f
  649. !     bset    #20,d6        | restore implied leading "1"
  650.       bra    1f
  651.   0:    addw    #1,d0        | "normalize" exponent
  652.   1:    movel    d6,d3
  653. ***************
  654. *** 151,157 ****
  655.   
  656.       tstw    d1        | check for zero exponent - no leading "1"
  657.       beq    0f
  658. !     orl    #0x100000,d4    | restore implied leading "1"
  659.       bra    1f
  660.   0:    addw    #1,d1        | "normalize" exponent
  661.   1:    movel    d4,d3
  662. --- 151,157 ----
  663.   
  664.       tstw    d1        | check for zero exponent - no leading "1"
  665.       beq    0f
  666. !     bset    #20,d4        | restore implied leading "1"
  667.       bra    1f
  668.   0:    addw    #1,d1        | "normalize" exponent
  669.   1:    movel    d4,d3
  670. ===================================================================
  671. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_mulsf3.cpp,v
  672. retrieving revision 1.3
  673. diff -c -r1.3 _mulsf3.cpp
  674. *** 1.3    1993/01/13 14:30:42
  675. --- _mulsf3.cpp    1993/03/01 17:34:14
  676. ***************
  677. *** 128,134 ****
  678.   nospec:    subw    #8,sp        | multiplication accumulator
  679.       tstw    d0        | check for zero exponent - no leading "1"
  680.       beq    0f
  681. !     orl    #0x800000,d5    | restore implied leading "1"
  682.       bra    1f
  683.   0:    addw    #1,d0        | "normalize" exponent
  684.   1:    tstl    d5
  685. --- 128,134 ----
  686.   nospec:    subw    #8,sp        | multiplication accumulator
  687.       tstw    d0        | check for zero exponent - no leading "1"
  688.       beq    0f
  689. !     bset    #23,d5        | restore implied leading "1"
  690.       bra    1f
  691.   0:    addw    #1,d0        | "normalize" exponent
  692.   1:    tstl    d5
  693. ***************
  694. *** 136,142 ****
  695.   
  696.       tstw    d1        | check for zero exponent - no leading "1"
  697.       beq    0f
  698. !     orl    #0x800000,d4    | restore implied leading "1"
  699.       bra    1f
  700.   0:    addw    #1,d1        | "normalize" exponent
  701.   1:    tstl    d4
  702. --- 136,142 ----
  703.   
  704.       tstw    d1        | check for zero exponent - no leading "1"
  705.       beq    0f
  706. !     bset    #23,d4        | restore implied leading "1"
  707.       bra    1f
  708.   0:    addw    #1,d1        | "normalize" exponent
  709.   1:    tstl    d4
  710. ===================================================================
  711. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/_truncdf.cpp,v
  712. retrieving revision 1.3
  713. diff -c -r1.3 _truncdf.cpp
  714. *** 1.3    1992/12/28 07:56:10
  715. --- _truncdf.cpp    1993/03/01 17:34:16
  716. ***************
  717. *** 93,99 ****
  718.   nospec:    
  719.       tstw    d0        | check for zero exponent - no leading "1"
  720.       beq    0f        | for denormalized numbers
  721. !     orl    #0x100000,d4    | restore implied leading "1"
  722.       bra    1f
  723.   0:    addw    #1,d0        | "normalize" exponent
  724.   1:
  725. --- 93,99 ----
  726.   nospec:    
  727.       tstw    d0        | check for zero exponent - no leading "1"
  728.       beq    0f        | for denormalized numbers
  729. !     bset    #20,d4        | restore implied leading "1"
  730.       bra    1f
  731.   0:    addw    #1,d0        | "normalize" exponent
  732.   1:
  733. ===================================================================
  734. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/atof.c,v
  735. retrieving revision 1.24
  736. diff -c -r1.24 atof.c
  737. *** 1.24    1993/01/13 14:30:52
  738. --- atof.c    1993/03/01 17:34:19
  739. ***************
  740. *** 573,581 ****
  741.         if (i < 17)
  742.           {
  743.             if (i++ & 1)
  744. !         *++p = (*str - '0') << 4;
  745.             else
  746. !         *p |= *str - '0';
  747.           }
  748.         str++;
  749.       }
  750. --- 573,581 ----
  751.         if (i < 17)
  752.           {
  753.             if (i++ & 1)
  754. !         *p = (*str - '0') << 4;
  755.             else
  756. !         *p++ |= *str - '0';
  757.           }
  758.         str++;
  759.       }
  760. ===================================================================
  761. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/ctime.c,v
  762. retrieving revision 1.9
  763. diff -c -r1.9 ctime.c
  764. *** 1.9    1993/02/18 00:00:15
  765. --- ctime.c    1993/03/01 17:34:21
  766. ***************
  767. *** 23,38 ****
  768.   {                    \
  769.           long _i = (long)(mval);        \
  770.        __asm__ volatile("
  771. -     extl    %1;
  772.       divu    #10,%1;
  773.       addb    #48,%1;
  774.       moveb    %1,%0@+;
  775.       swap    %1;
  776.       addb    #48,%1;
  777.       moveb    %1,%0@+"            \
  778. !           : "=a"((long)mptr)    \
  779. !           : "d"(_i), "g"((unsigned short)mval), \
  780. !             "0"(mptr));        \
  781.   }
  782.   
  783.   #else
  784. --- 23,36 ----
  785.   {                    \
  786.           long _i = (long)(mval);        \
  787.        __asm__ volatile("
  788.       divu    #10,%1;
  789.       addb    #48,%1;
  790.       moveb    %1,%0@+;
  791.       swap    %1;
  792.       addb    #48,%1;
  793.       moveb    %1,%0@+"            \
  794. !           : "=a"(mptr), "=d"(_i)        \
  795. !           : "1"(_i), "0"(mptr));        \
  796.   }
  797.   
  798.   #else
  799. ===================================================================
  800. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/doprnt.c,v
  801. retrieving revision 1.21
  802. diff -c -r1.21 doprnt.c
  803. *** 1.21    1993/02/18 00:00:18
  804. --- doprnt.c    1993/03/01 17:34:24
  805. ***************
  806. *** 142,148 ****
  807.     do                                \
  808.       {                                \
  809.         __asm__ volatile                        \
  810. !     ("divull %3,%0:%1"                    \
  811.        : "=d"((long)(NUMBER)), "=d"(i)            \
  812.        : "0"((long)(NUMBER)), "d"((long)(BASE)));        \
  813.         *--(BUF) = digs[i];                    \
  814. --- 142,148 ----
  815.     do                                \
  816.       {                                \
  817.         __asm__ volatile                        \
  818. !     ("divull %3,%1:%0"                    \
  819.        : "=d"((long)(NUMBER)), "=d"(i)            \
  820.        : "0"((long)(NUMBER)), "d"((long)(BASE)));        \
  821.         *--(BUF) = digs[i];                    \
  822. ===================================================================
  823. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/filbuf.c,v
  824. retrieving revision 1.9
  825. diff -c -r1.9 filbuf.c
  826. *** 1.9    1992/03/22 21:57:30
  827. --- filbuf.c    1993/03/01 17:34:27
  828. ***************
  829. *** 36,41 ****
  830. --- 36,42 ----
  831.       if((got = _read(fp->_file, fp->_base, (unsigned long)fp->_bsiz)) <= 0)
  832.       {   /* EOF or error */
  833.       fp->_flag |= ((got == 0) ? ((f & _IODEV) ? 0 : _IOEOF) : _IOERR);
  834. +     fp->_cnt = 0;
  835.       return EOF;
  836.       }
  837.       fp->_cnt = got - 1;
  838. ===================================================================
  839. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/fopen.c,v
  840. retrieving revision 1.18
  841. diff -c -r1.18 fopen.c
  842. *** 1.18    1992/09/14 14:56:40
  843. --- fopen.c    1993/03/01 17:34:29
  844. ***************
  845. *** 9,14 ****
  846. --- 9,16 ----
  847.   __EXTERN void _getbuf __PROTO((FILE *));
  848.   static FILE *_fopen __PROTO((const char *, const char *, FILE *));
  849.   
  850. + extern int __mint;
  851.   /* lowest character device handle # */
  852.   #define    LAST_DEVICE    __SMALLEST_VALID_HANDLE
  853.   
  854. ***************
  855. *** 120,126 ****
  856.           if(fflush(fp) != 0) return NULL;            /* flush err */
  857.           if(close(fp->_file) != 0) return NULL;        /* close err */
  858.   #else
  859. !     fflush(fp); close(fp->_file);        /* ANSI says ignore errors */
  860.   #endif
  861.       }
  862.       /* save buffer discipline and setbuf settings, and _IOWRT just for
  863. --- 122,130 ----
  864.           if(fflush(fp) != 0) return NULL;            /* flush err */
  865.           if(close(fp->_file) != 0) return NULL;        /* close err */
  866.   #else
  867. !     fflush(fp);                /* ANSI says ignore errors */
  868. !     if (__mint || !(f & _IODEV))        /* leave tty's alone */
  869. !       close(fp->_file);
  870.   #endif
  871.       }
  872.       /* save buffer discipline and setbuf settings, and _IOWRT just for
  873. ***************
  874. *** 145,149 ****
  875. --- 149,157 ----
  876.       fp->_flag &= ~(_IONBF | _IOLBF | _IOFBF | _IOMYBUF);
  877.       fp->_flag |= f;
  878.       
  879. +     if (fp->_base == NULL)
  880. +       /* get new buffer if file was closed */
  881. +       _getbuf (fp);
  882.       return fp;
  883.       }
  884. ===================================================================
  885. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/getpid.c,v
  886. retrieving revision 1.6
  887. diff -c -r1.6 getpid.c
  888. *** 1.6    1992/09/14 14:56:40
  889. --- getpid.c    1993/03/01 17:34:31
  890. ***************
  891. *** 1,7 ****
  892.   #include <osbind.h>
  893.   #include <unistd.h>
  894.   #include <basepage.h>
  895. ! #include "mintbind.h"
  896.   
  897.   extern int __mint;
  898.   
  899. --- 1,7 ----
  900.   #include <osbind.h>
  901.   #include <unistd.h>
  902.   #include <basepage.h>
  903. ! #include <mintbind.h>
  904.   
  905.   extern int __mint;
  906.   
  907. ===================================================================
  908. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/gmon.c,v
  909. retrieving revision 1.10
  910. diff -c -r1.10 gmon.c
  911. *** 1.10    1992/10/09 20:35:29
  912. --- gmon.c    1993/03/16 22:16:25
  913. ***************
  914. *** 106,112 ****
  915.   __EXTERN void _mcleanup __PROTO((void));
  916.   __EXTERN int profil __PROTO((void *buff, unsigned long bufsiz, unsigned long offset,
  917.              int shift));
  918. ! static void tick __PROTO((void));
  919.   static void term __PROTO((void));
  920.   static void install_handlers __PROTO((void));
  921.   static void remove_handlers __PROTO((void));
  922. --- 106,112 ----
  923.   __EXTERN void _mcleanup __PROTO((void));
  924.   __EXTERN int profil __PROTO((void *buff, unsigned long bufsiz, unsigned long offset,
  925.              int shift));
  926. ! /* static */ void tick __PROTO((void));
  927.   static void term __PROTO((void));
  928.   static void install_handlers __PROTO((void));
  929.   static void remove_handlers __PROTO((void));
  930. ***************
  931. *** 272,277 ****
  932. --- 272,289 ----
  933.    *     we dont use this, it was a convention for the old prof stuff.
  934.    */
  935.   
  936. + #if __GNUC__ > 1
  937. + void mcount (void) asm ("mcount");
  938. + void
  939. + mcount ()
  940. + {
  941. +   void *callee, *caller;
  942. +   callee = (void *) __builtin_return_address (0);
  943. +   caller = (void *) __builtin_return_address (1);
  944. +   build_graph (caller, callee);
  945. + }
  946. + #else
  947.       __asm__("\
  948.             .text; .even
  949.            .globl mcount    /* note: no `_' */
  950. ***************
  951. *** 284,289 ****
  952. --- 296,302 ----
  953.            addqw    #8,sp
  954.            rts
  955.            ");
  956. + #endif
  957.   
  958.   /*
  959.    * build_graph
  960. ***************
  961. *** 428,434 ****
  962.   static unsigned long maxidx;
  963.   static unsigned long off;
  964.   static unsigned long shift_val;
  965. - static void term(void), tick(void);
  966.   
  967.   static xbra_struct tick_xbra = _XBRA_INIT(tick);
  968.   static xbra_struct term_xbra = _XBRA_INIT(term);
  969. --- 441,446 ----
  970. ===================================================================
  971. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/lib.h,v
  972. retrieving revision 1.8
  973. diff -c -r1.8 lib.h
  974. *** 1.8    1992/09/14 14:56:40
  975. --- lib.h    1993/03/01 17:34:34
  976. ***************
  977. *** 75,78 ****
  978. --- 75,112 ----
  979.   
  980.   extern struct mem_chunk _mchunk_free_list;
  981.   
  982. + /* status of open files (for isatty, et al.) */
  983. + #ifdef __MINT__
  984. + #define __NHANDLES 40
  985. + struct __open_file {
  986. +     short    status;        /* whether or not it's a tty */
  987. +     short    flags;        /* if a tty, its flags */
  988. + };
  989. + #else
  990. + #define __NHANDLES    80
  991. + struct __open_file {
  992. +     unsigned short append:1;    /* 1 if O_APPEND set for this file */
  993. +     unsigned short nodelay:1;    /* 1 if O_NDELAY set for this file */
  994. +     unsigned short pipe:1;      /* 1 if O_PIPE set for this file */
  995. +     unsigned short eclose:1;    /* 1 if close on exec is set for this file */
  996. +     unsigned short status:2;    /* status FH_UNKNOWN | ISATTY | ISAFILE */
  997. +     char       *filename;    /* filename of open file */
  998. + };
  999. + #endif /* __MINT__ */
  1000. + extern struct __open_file __open_stat[];
  1001. +   /* NOTE: this array is indexed by (__OPEN_INDEX(fd)) */
  1002. + #define __OPEN_INDEX(x)    (((short)(x)) + 3)
  1003. + #define FH_UNKNOWN    0
  1004. + #define FH_ISATTY    1
  1005. + #define FH_ISAFILE    2
  1006.   #endif /* _LIB_H */
  1007. ===================================================================
  1008. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/ltoa.c,v
  1009. retrieving revision 1.8
  1010. diff -c -r1.8 ltoa.c
  1011. *** 1.8    1992/09/14 14:56:40
  1012. --- ltoa.c    1993/03/01 17:34:36
  1013. ***************
  1014. *** 1,6 ****
  1015.   #include <string.h>
  1016.   #include "lib.h"
  1017. - #include "lib.h"
  1018.   
  1019.   #ifdef __STRICT_ANSI__
  1020.   #  ifdef __STDC__
  1021. --- 1,5 ----
  1022. ===================================================================
  1023. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/realloc.c,v
  1024. retrieving revision 1.2
  1025. diff -c -r1.2 realloc.c
  1026. *** 1.2    1992/09/14 14:56:40
  1027. --- realloc.c    1993/03/16 22:16:27
  1028. ***************
  1029. *** 38,44 ****
  1030.     p = r - 1;
  1031.     sz = (n + sizeof(struct mem_chunk) + 7) & ~7;
  1032.   
  1033. !   if (p->size > sz) 
  1034.       {            /* block too big, split in two */
  1035.       q = (struct mem_chunk * )(((long) p) + sz);
  1036.       q->size = p->size - sz;
  1037. --- 38,44 ----
  1038.     p = r - 1;
  1039.     sz = (n + sizeof(struct mem_chunk) + 7) & ~7;
  1040.   
  1041. !   if (p->size > sz + ((sizeof (struct mem_chunk) + 7) & ~7))
  1042.       {            /* block too big, split in two */
  1043.       q = (struct mem_chunk * )(((long) p) + sz);
  1044.       q->size = p->size - sz;
  1045. ===================================================================
  1046. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strerror.c,v
  1047. retrieving revision 1.5
  1048. diff -c -r1.5 strerror.c
  1049. *** 1.5    1992/06/01 01:54:10
  1050. --- strerror.c    1993/03/01 17:34:39
  1051. ***************
  1052. *** 86,92 ****
  1053.       nullstr,                /* 78 */
  1054.       nullstr,                /* 79 */
  1055.       "too many symbolic links",        /* 80 */
  1056. !     nullstr,                /* 81 */
  1057.       nullstr,                /* 82 */
  1058.       nullstr,                /* 83 */
  1059.       nullstr,                /* 84 */
  1060. --- 86,92 ----
  1061.       nullstr,                /* 78 */
  1062.       nullstr,                /* 79 */
  1063.       "too many symbolic links",        /* 80 */
  1064. !     "broken pipe",                /* 81 */
  1065.       nullstr,                /* 82 */
  1066.       nullstr,                /* 83 */
  1067.       nullstr,                /* 84 */
  1068. ===================================================================
  1069. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strftime.c,v
  1070. retrieving revision 1.7
  1071. diff -c -r1.7 strftime.c
  1072. *** 1.7    1992/09/14 14:56:40
  1073. --- strftime.c    1993/03/01 17:34:40
  1074. ***************
  1075. *** 178,186 ****
  1076.               putstr = "\n";
  1077.               break;
  1078.              case 't':    /* same as \t */
  1079. !             putstr = "\n";
  1080.               break;
  1081. -             break;
  1082.              case 'D':    /* date as %m/%d/%y */
  1083.               strftime(buf, sizeof buf, "%m/%d/%y", ts);
  1084.               break;
  1085. --- 178,185 ----
  1086.               putstr = "\n";
  1087.               break;
  1088.              case 't':    /* same as \t */
  1089. !             putstr = "\t";
  1090.               break;
  1091.              case 'D':    /* date as %m/%d/%y */
  1092.               strftime(buf, sizeof buf, "%m/%d/%y", ts);
  1093.               break;
  1094. ***************
  1095. *** 197,202 ****
  1096. --- 196,205 ----
  1097.               strftime(buf, sizeof buf, "%H:%M:%S", ts);
  1098.               break;
  1099.   #endif
  1100. +            default:
  1101. +             buf[0] = q;
  1102. +             buf[1] = 0;
  1103. +             break;
  1104.                   }
  1105.   
  1106.                   if (num + (len = strlen(putstr)) >= maxsize)
  1107. ===================================================================
  1108. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strlwr.c,v
  1109. retrieving revision 1.2
  1110. diff -c -r1.2 strlwr.c
  1111. *** 1.2    1993/02/18 00:00:32
  1112. --- strlwr.c    1993/03/01 17:34:43
  1113. ***************
  1114. *** 10,16 ****
  1115.           while(*string)
  1116.           {
  1117.               if(isupper(*string))
  1118. !                 *string ^= 0x20;
  1119.               ++string;
  1120.           }
  1121.       }
  1122. --- 10,16 ----
  1123.           while(*string)
  1124.           {
  1125.               if(isupper(*string))
  1126. !                 *string = tolower(*string);
  1127.               ++string;
  1128.           }
  1129.       }
  1130. ===================================================================
  1131. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strtol.c,v
  1132. retrieving revision 1.12
  1133. diff -c -r1.12 strtol.c
  1134. *** 1.12    1992/09/14 14:56:40
  1135. --- strtol.c    1993/03/01 17:34:45
  1136. ***************
  1137. *** 88,96 ****
  1138.         if (0 == (overflow &= 1)) {    /* valid digit
  1139.                          - some conversion performed */
  1140.         if ((result < limit) ||
  1141. !           ((unsigned long) digit >
  1142. !            (unsigned long) (result = _BASEMUL(base, shift, result),
  1143. !                 result - bottom))) {
  1144.             result = bottom;
  1145.             overflow = 1;
  1146.         }
  1147. --- 88,95 ----
  1148.         if (0 == (overflow &= 1)) {    /* valid digit
  1149.                          - some conversion performed */
  1150.         if ((result < limit) ||
  1151. !           /* watch out for overflow (-bottom == bottom!) */
  1152. !           (digit + bottom > (result = _BASEMUL(base, shift, result)))) {
  1153.             result = bottom;
  1154.             overflow = 1;
  1155.         }
  1156. ===================================================================
  1157. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/strupr.c,v
  1158. retrieving revision 1.1
  1159. diff -c -r1.1 strupr.c
  1160. *** 1.1    1993/02/22 06:15:14
  1161. --- strupr.c    1993/03/01 17:34:47
  1162. ***************
  1163. *** 11,17 ****
  1164.           while(*string)
  1165.           {
  1166.               if(islower(*string))
  1167. !                 *string ^= 0x20;
  1168.               ++string;
  1169.           }
  1170.       }
  1171. --- 11,17 ----
  1172.           while(*string)
  1173.           {
  1174.               if(islower(*string))
  1175. !                 *string = toupper(*string);
  1176.               ++string;
  1177.           }
  1178.       }
  1179.